#conding:utf-8

import json
import requests


def read_json():
    with open('fan.json', 'r', encoding='utf-8') as f:
        json_dic = json.load(f)
        for i in json_dic:
            print(i)
        print('json_dic len : ', len(json_dic))





def save_html():
    url = 'http://www.kugou.com/share/zlist.html?u=584399107&h1=287321414706738816060241859145721826265&h2=eae3a11e3c46454558cfa8ae45658456&listid=2&uid=584399107&type=0&_t=1559922960&token=d147d33991f2f1ca2eb9295a2e18ee6700d36746de14b95bb5e4ee29db8fcafd&sign=61b2e286e68b3a7675a8437dda382cc6&chl=qq_client#hash=2B169B180CC25E5953F86A70C8901071&album_id=4076380'

    conn = requests.get(url)

    with open('fan_html.html', 'w', encoding='utf-8') as f:
        f.write(conn.text)

    print(conn.text)


read_json()
# save_html()